
let p = new Promise((resolve,reject)=>{
  // resolve('ok');
  // reject('error')
   throw '出问题了'
});
console.log(p)
// [[Prototype]]: Promise
// [[PromiseState]]: "fulfilled"
// [[PromiseResult]]: "ok"

// [[Prototype]]: Promise
// [[PromiseState]]: "rejected"
// [[PromiseResult]]: "error"

// [[Prototype]]: Promise
// [[PromiseState]]: "rejected"
// [[PromiseResult]]: "出问题了"


